<script setup>
import {useRouter} from 'vue-router'

const router = useRouter();

const goDetail=(id)=>{
}

</script>

<template>
    <h1>音乐列表（路由传参：用query）</h1>
    <ul>
        <li>
            <router-link to="/Admin/Detail02?id=01001&name=张三疯">分手快乐(字符串传值)</router-link>
        </li>
        <li>
            <router-link :to="{path:'/Admin/Detail02',query:{id:'01001',name:'张三疯'}}">分手快乐(对象写法)</router-link>
        </li>
        <li>
            <router-link to="/Admin/Detail02?id=01002">分手快乐(字符串传值)</router-link>
        </li>
    </ul>
</template>

<style  scoped></style>
